package com.jn.retrofit.service;

import com.jn.retrofit.entity.MusicEntity;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface MusicService {
    @FormUrlEncoded
    @POST("music/qianqian_music.php")
    Call<ResponseBody> getData(@Field("msg") String musicName);

    @FormUrlEncoded
    @POST("music/qianqian_music.php")
    Call<MusicEntity> getData2(@Field("msg") String musicName);

    @POST("music/qianqian_music.php")
    Call<MusicEntity> getData3(@Body Map<String, Object> map);

    @FormUrlEncoded
    @POST("music/qianqian_music.php")
    Call<MusicEntity> getData4(@FieldMap Map<String, Object> map);//@FieldMap必须与 @FormUrlEncoded 一起配合使用

    @POST("music/qianqian_music.php")
    Call<MusicEntity> getData5(@Body Object map);
}
